package com.example.myworkers.service.imp;/*
 *编写者：段光映
 */

import com.example.myworkers.dao.IMoney;
import com.example.myworkers.model.Money;
import com.example.myworkers.model.Party;
import com.example.myworkers.service.MoneyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MoneyServiceImpl implements MoneyService {
    @Autowired
    private IMoney moneyMapper;
    @Override
    public int insertMoney(Money money){
        int moneyvalue=0;
        return moneyvalue;
    }
    @Override
    public int deleteMoney(Money money){
        int moneyvalue=0;
        return moneyvalue;
    }
    @Override
    public List<Money> selectAllMoney(Money money){
        List<Money> getM=moneyMapper.selectAllMoney(money);
        return getM;
    }
    @Override
    public  Money selectMoney(Money money){
       Money money1=new Money();
        if(money.getPayid()!=0){
            money1=moneyMapper.selectMoney(money);
        }
        return money1;
    }
    @Override
    public int updateMoney(Money money){
        int moneyvalue=0;
        return moneyvalue;
    }

}
